package com.peas.platform.module.icims.contract.initial.enums;

import com.peas.platform.common.core.enums.BaseEnum;
import com.peas.platform.common.core.enums.CommonElType;

public enum ContractInitialState implements BaseEnum {

    // 0保存、1提交审批、2审批通过、3审批驳回、4撤回、
    // 5已生效、6请款中、7请款完成、8验收中、9验收完成、
    // 10已完结、11已归档
    save("0", "保存", CommonElType.info),
    submit("1", "提交审批", CommonElType.primary),
    pass("2", "审批通过", CommonElType.success),
    reject("3", "审批驳回", CommonElType.danger),
    revocation("4", "撤回", CommonElType.danger),
    effect("5", "已生效", CommonElType.primary),
    paying("6", "请款中", CommonElType.primary),
    payed("7", "请款完成", CommonElType.primary),
    checking("8", "验收中", CommonElType.primary),
    checked("9", "验收完成", CommonElType.primary),
    complete("10", "已完结", CommonElType.primary),
    archive("11", "已归档", CommonElType.primary),
    ;

    private final String key;
    private final String value;
    private final CommonElType elTagType;

    ContractInitialState(String key, String value, CommonElType elTagType) {
        this.key = key;
        this.value = value;
        this.elTagType = elTagType;
    }

    @Override
    public String getKey() {
        return this.key;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public CommonElType getElTagType() {
        return elTagType;
    }

}
